package farm.pattern.command;


import farm.entity.FarmMachine;
import farm.pattern.state.PausedState;

public class StopCommand implements Command {
    @Override
    public void execute(FarmMachine machine) {
        machine.setState(new PausedState());
        System.out.println(machine.getType() + " 停止命令执行");
    }
}